﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace FwProject.Authorization.Accounts.Dto
{
    public class ResetPasswordDto
    {
        /// <summary>
        /// 新密码
        /// </summary>
        [Required(ErrorMessage ="请输入密码")]
        [RegularExpression(@"^[0-9A-Za-z]{6,16}$", ErrorMessage = "密码必须为6-16位的英文或数字！")]
        public string NewPassword { get; set; }
        /// <summary>
        /// 确认密码
        /// </summary>
        [Required(ErrorMessage = "请再次输入密码")]
        [RegularExpression(@"^[0-9A-Za-z]{6,16}$", ErrorMessage = "密码必须为6-16位的英文或数字！")]
        public string RepeatPassword { get; set; }
    }
}
